package me.luger.core.mvc.log.access;

import me.luger.core.mvc.log.LogEntity;
import me.luger.core.mvc.log.dao.DaoLogEntity;
import me.luger.core.mvc.log.service.ServiceLogEntity;

import java.util.List;
import java.util.Map;

/**
 * AccessLogEntity
 *
 * @author luger
 * @date 2016/9/18 0018
 */
public class AccessLogEntity extends LogEntity {


    private String accessDomain;
    private String accessIp;
    private long afterControllerTime;
    private boolean useCache;
    private String cacheKey;
    private boolean gzip;
    private String httpMethod;
    private Map<String,String[]> params;
    private String url;
    private String userIp;
    private String referer;
    private String controllerClass;
    private String controllerMethod;
    private List<ServiceLogEntity> serviceLogEntityList;
    private List<DaoLogEntity> daoLogEntityList;

    public String getAccessDomain() {
        return accessDomain;
    }

    public void setAccessDomain(String accessDomain) {
        this.accessDomain = accessDomain;
    }

    public String getAccessIp() {
        return accessIp;
    }

    public void setAccessIp(String accessIp) {
        this.accessIp = accessIp;
    }


    public boolean isUseCache() {
        return useCache;
    }

    public void setUseCache(boolean useCache) {
        this.useCache = useCache;
    }

    public String getCacheKey() {
        return cacheKey;
    }

    public void setCacheKey(String cacheKey) {
        this.cacheKey = cacheKey;
    }

    public boolean isGzip() {
        return gzip;
    }

    public void setGzip(boolean gzip) {
        this.gzip = gzip;
    }

    public String getHttpMethod() {
        return httpMethod;
    }

    public void setHttpMethod(String httpMethod) {
        this.httpMethod = httpMethod;
    }

    public Map<String, String[]> getParams() {
        return params;
    }

    public void setParams(Map<String, String[]> params) {
        this.params = params;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getUserIp() {
        return userIp;
    }

    public void setUserIp(String userIp) {
        this.userIp = userIp;
    }

    public long getAfterControllerTime() {
        return afterControllerTime;
    }

    public void setAfterControllerTime(long afterControllerTime) {
        this.afterControllerTime = afterControllerTime;
    }

    public String getReferer() {
        return referer;
    }

    public void setReferer(String referer) {
        this.referer = referer;
    }

    public String getControllerClass() {
        return controllerClass;
    }

    public void setControllerClass(String controllerClass) {
        this.controllerClass = controllerClass;
    }

    public String getControllerMethod() {
        return controllerMethod;
    }

    public void setControllerMethod(String controllerMethod) {
        this.controllerMethod = controllerMethod;
    }

    public List<ServiceLogEntity> getServiceLogEntityList() {
        return serviceLogEntityList;
    }

    public void setServiceLogEntityList(List<ServiceLogEntity> serviceLogEntityList) {
        this.serviceLogEntityList = serviceLogEntityList;
    }

    public List<DaoLogEntity> getDaoLogEntityList() {
        return daoLogEntityList;
    }

    public void setDaoLogEntityList(List<DaoLogEntity> daoLogEntityList) {
        this.daoLogEntityList = daoLogEntityList;
    }
}
